<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/glEvents.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('glEvents_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">glEvents.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="glEvents_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga8386b89daf8ec3a1805554fd95b80a9e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga8386b89daf8ec3a1805554fd95b80a9e">KEY_PRESSED</a>&#160;&#160;&#160;1</td></tr>
<tr class="memdesc:ga8386b89daf8ec3a1805554fd95b80a9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for KEY_STATE and KEY_RAW events when key is pressed.  <a href="group__OpenGL.html#ga8386b89daf8ec3a1805554fd95b80a9e">More...</a><br /></td></tr>
<tr class="separator:ga8386b89daf8ec3a1805554fd95b80a9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gada3a4be515b3527c1691ce080655877f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gada3a4be515b3527c1691ce080655877f">KEY_RELEASED</a>&#160;&#160;&#160;0</td></tr>
<tr class="memdesc:gada3a4be515b3527c1691ce080655877f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for KEY_STATE and KEY_RAW events when key is released.  <a href="group__OpenGL.html#gada3a4be515b3527c1691ce080655877f">More...</a><br /></td></tr>
<tr class="separator:gada3a4be515b3527c1691ce080655877f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa598baa2224b84dff25efa47099a37d7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="glEvents_8h.html#aa598baa2224b84dff25efa47099a37d7">KEY_OFFSET</a>&#160;&#160;&#160;0xff00</td></tr>
<tr class="separator:aa598baa2224b84dff25efa47099a37d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2b6ad02991ecad1673dab379a9f58acd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga2b6ad02991ecad1673dab379a9f58acd">MOUSE_PRESSED</a>&#160;&#160;&#160;1</td></tr>
<tr class="memdesc:ga2b6ad02991ecad1673dab379a9f58acd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for MOUSE_BUTTON event when button is pressed.  <a href="group__OpenGL.html#ga2b6ad02991ecad1673dab379a9f58acd">More...</a><br /></td></tr>
<tr class="separator:ga2b6ad02991ecad1673dab379a9f58acd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa430fb566e84a444e76ca05486dc882d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gaa430fb566e84a444e76ca05486dc882d">MOUSE_RELEASED</a>&#160;&#160;&#160;0</td></tr>
<tr class="memdesc:gaa430fb566e84a444e76ca05486dc882d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for MOUSE_BUTTON event when button is released.  <a href="group__OpenGL.html#gaa430fb566e84a444e76ca05486dc882d">More...</a><br /></td></tr>
<tr class="separator:gaa430fb566e84a444e76ca05486dc882d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga194f107d8c7d12bc83db00d024d5e513"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga194f107d8c7d12bc83db00d024d5e513">MOUSE_LEFT</a>&#160;&#160;&#160;1</td></tr>
<tr class="memdesc:ga194f107d8c7d12bc83db00d024d5e513"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for the left mouse button number.  <a href="group__OpenGL.html#ga194f107d8c7d12bc83db00d024d5e513">More...</a><br /></td></tr>
<tr class="separator:ga194f107d8c7d12bc83db00d024d5e513"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2f7a686becd5d10c3cf769a6a1da7989"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga2f7a686becd5d10c3cf769a6a1da7989">MOUSE_MIDDLE</a>&#160;&#160;&#160;2</td></tr>
<tr class="memdesc:ga2f7a686becd5d10c3cf769a6a1da7989"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for the middle mouse button (or scroll wheel button)  <a href="group__OpenGL.html#ga2f7a686becd5d10c3cf769a6a1da7989">More...</a><br /></td></tr>
<tr class="separator:ga2f7a686becd5d10c3cf769a6a1da7989"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46f1ed1152bf8bf7680873ad678b3651"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga46f1ed1152bf8bf7680873ad678b3651">MOUSE_RIGHT</a>&#160;&#160;&#160;3</td></tr>
<tr class="memdesc:ga46f1ed1152bf8bf7680873ad678b3651"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for the right mouse button number.  <a href="group__OpenGL.html#ga46f1ed1152bf8bf7680873ad678b3651">More...</a><br /></td></tr>
<tr class="separator:ga46f1ed1152bf8bf7680873ad678b3651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5268fa4c5e397526716bac7b30f639ee"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga5268fa4c5e397526716bac7b30f639ee">MOUSE_WHEEL_UP</a>&#160;&#160;&#160;4</td></tr>
<tr class="memdesc:ga5268fa4c5e397526716bac7b30f639ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for the mouse wheel scroll up button number.  <a href="group__OpenGL.html#ga5268fa4c5e397526716bac7b30f639ee">More...</a><br /></td></tr>
<tr class="separator:ga5268fa4c5e397526716bac7b30f639ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5a8cfef1d06f7b507fd2ecab7bf75ead"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga5a8cfef1d06f7b507fd2ecab7bf75ead">MOUSE_WHEEL_DOWN</a>&#160;&#160;&#160;5</td></tr>
<tr class="memdesc:ga5a8cfef1d06f7b507fd2ecab7bf75ead"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define for the mouse wheel scroll down button number.  <a href="group__OpenGL.html#ga5a8cfef1d06f7b507fd2ecab7bf75ead">More...</a><br /></td></tr>
<tr class="separator:ga5a8cfef1d06f7b507fd2ecab7bf75ead"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gacbcfc0668226b31d1becba25887ff47e"><td class="memItemLeft" align="right" valign="top">typedef bool(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gacbcfc0668226b31d1becba25887ff47e">glEventHandler</a>) (uint16_t event, int a, int b, void *user)</td></tr>
<tr class="memdesc:gacbcfc0668226b31d1becba25887ff47e"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classEvent.html" title="Event object for signalling other threads. ">Event</a> message handler callback for recieving UI messages from a window.  <a href="group__OpenGL.html#gacbcfc0668226b31d1becba25887ff47e">More...</a><br /></td></tr>
<tr class="separator:gacbcfc0668226b31d1becba25887ff47e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gadad47fc5cdbc7af41eee1991038749fe"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gadad47fc5cdbc7af41eee1991038749fe">glEventType</a> { <br />
&#160;&#160;<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea7513d383f97428a41f8b44594874d469">MOUSE_MOVE</a> = 0, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea8de816dffb2b2835bd493047322de4d8">MOUSE_ABSOLUTE</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fead81c1a06c50141d5a469d4513479c24c">MOUSE_BUTTON</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea387b8a2503db0238598215649168bed3">MOUSE_DRAG</a>, 
<br />
&#160;&#160;<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea477b36ffc584a4458ea59eb24c7ea4cb">MOUSE_WHEEL</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749feaa7990d29ca8911d1d65ebe318e3bfdad">KEY_STATE</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749feac72a03e9a29e852b03999c7a8a2076b5">KEY_MODIFIED</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea8f72d21c8a5a305ff69f576d6a799c08">KEY_CHAR</a>, 
<br />
&#160;&#160;<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea596bff109a8d5a26abf4e8d776903919">WIDGET_CREATED</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea1a95cd0d3e7b79901949c2aa3397c955">WIDGET_SELECTED</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea0ec18df1c78ce7428c5a828b29ec8c83">WIDGET_MOVED</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749fea833cc0c2132855c06b26ee0508f22116">WIDGET_RESIZED</a>, 
<br />
&#160;&#160;<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749feafb6f46ac831d8060d921687aba839a82">WINDOW_RESIZED</a>, 
<a class="el" href="group__OpenGL.html#ggadad47fc5cdbc7af41eee1991038749feaa2199f69612be7b5e44d25fab5dab570">WINDOW_CLOSED</a>
<br />
 }<tr class="memdesc:gadad47fc5cdbc7af41eee1991038749fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">User interface event message types.  <a href="group__OpenGL.html#gadad47fc5cdbc7af41eee1991038749fe">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gadad47fc5cdbc7af41eee1991038749fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0e117949b724f95480214c0ac4545de1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="glEvents_8h.html#a0e117949b724f95480214c0ac4545de1">glRegisterEvents</a> (<a class="el" href="group__OpenGL.html#gacbcfc0668226b31d1becba25887ff47e">glEventHandler</a> callback, void *user=NULL, uint32_t display=0)</td></tr>
<tr class="memdesc:a0e117949b724f95480214c0ac4545de1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register an event message handler that will be called with events.  <a href="#a0e117949b724f95480214c0ac4545de1">More...</a><br /></td></tr>
<tr class="separator:a0e117949b724f95480214c0ac4545de1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a511a1689c3ce478689b3e06f0d07f399"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="glEvents_8h.html#a511a1689c3ce478689b3e06f0d07f399">glUnregisterEvents</a> (<a class="el" href="group__OpenGL.html#gacbcfc0668226b31d1becba25887ff47e">glEventHandler</a> callback, void *user=NULL)</td></tr>
<tr class="memdesc:a511a1689c3ce478689b3e06f0d07f399"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unregister an event message handler from being called with events.  <a href="#a511a1689c3ce478689b3e06f0d07f399">More...</a><br /></td></tr>
<tr class="separator:a511a1689c3ce478689b3e06f0d07f399"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="aa598baa2224b84dff25efa47099a37d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa598baa2224b84dff25efa47099a37d7">&#9670;&nbsp;</a></span>KEY_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define KEY_OFFSET&#160;&#160;&#160;0xff00</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a0e117949b724f95480214c0ac4545de1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e117949b724f95480214c0ac4545de1">&#9670;&nbsp;</a></span>glRegisterEvents()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void glRegisterEvents </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__OpenGL.html#gacbcfc0668226b31d1becba25887ff47e">glEventHandler</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>display</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Register an event message handler that will be called with events. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">callback</td><td>function pointer to the event message handler callback </td></tr>
    <tr><td class="paramname">user</td><td>optional user-specified pointer that will be passed to all invocations of this event handler (typically an object) </td></tr>
    <tr><td class="paramname">display</td><td>optional display ID of the <a class="el" href="classglDisplay.html" title="OpenGL display window and image/video renderer with CUDA interoperability. ">glDisplay</a> instance to use </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a511a1689c3ce478689b3e06f0d07f399"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a511a1689c3ce478689b3e06f0d07f399">&#9670;&nbsp;</a></span>glUnregisterEvents()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void glUnregisterEvents </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__OpenGL.html#gacbcfc0668226b31d1becba25887ff47e">glEventHandler</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unregister an event message handler from being called with events. </p>
<p>UnregisterEventHandler() will search for previously registered event handlers that have the same function pointer and/or user pointer, and remove them for being called again in the future. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="glEvents_8h.html">glEvents.h</a></li>
    <li class="footer">Generated on Tue Jul 14 2020 21:59:34 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
